package com.cskaoyan.mapper;

import com.cskaoyan.vo.CountryInterfaceVO;
import com.cskaoyan.vo.TempUserVO;
import com.cskaoyan.vo.TplUser;
import com.cskaoyan.vo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    List<TplUser> selectAll();

    int selectUserByUpcId(@Param("upcUserId") Long upcUserId);

    TempUserVO selectTempByUpcId(@Param("upcUserId") Long upcUserId);

    int updateTplUser(@Param("tplUserId") Long tplUserId, @Param("upcUserId") Long upcUserId);

    void createTempData(TempUserVO user);

    void updateCountryManagerId(TempUserVO tempUserVO);

    void updateCountryInterfaceId(@Param("tplId") String tplId, @Param("upcId") String upcId);

    void updateTempData(@Param("tableName") String tableName, @Param("tempUserVO") TempUserVO tempUserVO);

    List<CountryInterfaceVO> selectCountryInterfaceId(@Param("tplUserId") String tplUserId);
}
